<%= javascript_include_tag 'pagination' %>

<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
   <table>
      <tbody>

        <% form_for(@wish_list) do |f| %>
          <%= f.error_messages %>
          <table>
            <tbody>
              <tr>
                <td> <%= label_tag :user, t('activerecord.attributes.wish_list.user') %> </td>
                <td>
                  <%= text_field_tag 'wish_list_user', @wish_list_user, {:disabled => true, :size => 30} %>
                </td>
                <td>
                  <div id='basic-modal-user_selector'>
                    <a href='#' class='basic'><%=t('btn_selected')%></a>
                  </div>
                </td>
                <td>
                  <%= hidden_field(:wish_list, :user_id)%>
                </td>
              </tr>
              <tr>
                <td> <%= label_tag :name, t('activerecord.attributes.wish_list.name') %> </td>
                <td> <%= f.text_field :name %> </td>
              </tr>
              <tr>
                <td> <%= label_tag :type_list, t('activerecord.attributes.wish_list.type_list') %> </td>
                <td>
                  <%= select(:wish_list, :type_list, options_for_select(WishList::LIST_TYPES.map {|u| [t(u),u]}), :prompt => true) %>
                </td>
              </tr>

            </tbody>
          </table>
          <div class="line-buttons">
            <%= f.submit t('btn_create') %>
          </div>
          <div class="line-links">
            <%= link_to t('btn_back'), wish_lists_redirect_back_path(wish_lists_path) %>
          </div>
        <% end %>
      </tbody>
   </table>
  </div>

  <div class="portlet-footer">
  </div>
</div>

<div id="basic-modal-content-user_selector" style="display:none;">
  <%= render :partial=>'localusers/selector_users' %>
</div>